package com.vincce.sport.core.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import com.vincce.sport.controller.TimerTaskController;


@Component
public class ScoreTask extends TimerTaskController{
	
	/**
	 * 比分定时器
	 */
	@Scheduled(cron="0 0 3 * * ?")
//	@Scheduled(cron="0 0/1 * * * ?")
	public void updateScoreTimer(){
		updateScore();
	}

	/**
	 * 预赛赛程定时器
	 */
//	@Scheduled(cron="0 0/1 * * * ?")
	@Scheduled(cron="0 0 1 * * ?")
	public void preMatchTimer() throws Exception{
		preMatch();
	}
	
	/*
	 * 球队分组信息定时器
	 */
//	@Scheduled(cron="0 0/1 * * * ?")
	@Scheduled(cron="0 0 4 * * ?")
	public void updateTeamGroupInfoTimer() throws Exception{
		updateTeamGroupInfo();
	}
}
